package com.cx.ioc.service.impl;

import com.cx.ioc.dao.UserDao;
import com.cx.ioc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package com.cx.ioc.service.impl
 * @Description:
 * @Date 2025/5/29 8:22
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public void add() {
        userDao.add();
        System.out.println("service中调用了add方法");
    }

}